package com.example.day10;

/**
 * @author Lenovo
 */
public class Granddad {
    public void drink()
    {
        System.out.println("granddad drink water");
    }
}
class Father extends Granddad
{
    public void smoke()
    {
        System.out.println("father drink water");
    }
}
class Mother extends Granddad
{
    public void dance()
    {
        System.out.println("mother drink water");
    }
}
class Son extends Father
{

}
